/* eslint-disable */
import { createStore, applyMiddleware } from 'redux'
import combineReducers from '../pages/page.reducers'
import promiseMiddleware from './promiseMiddleware'
import promise from 'redux-promise'
let Middleware = [promiseMiddleware, promise]

module.hot &&
  module.hot.accept('../pages/page.reducers', () => {
    const nextCombineReducers = require('../pages/page.reducers').default
    store.replaceReducer(nextCombineReducers)
  })
export default createStore(combineReducers, applyMiddleware(...Middleware))
